package com.hospital.rank.module.feign;

import com.hospital.common.base.Result;
import com.hospital.common.config.FeignConfig;
import com.hospital.common.vo.section.module.SectionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "section-module",configuration = FeignConfig.class,path = "/api/sections")
public interface SectionModuleFeign {
    /**
     * 根据板块id查询板块
     */
    @GetMapping("/findSectionById")
    Result<SectionVo> findSectionById(@RequestParam("id") Long id);
}
